var layer;
var $;
var element;
var form;
var laydate;
layui.use(['element','layer','laydate','form'], function(){
    layer = layui.layer;
    $ = layui.jquery;
    element = layui.element;
    form = layui.form;
    laydate = layui.laydate;

})

function selProduct(){
    var productName=$('input[name=productName]').val();
    var searchKeywords=$('input[name=searchKeywords]').val();
    var currentpriceProduct=$('input[name=currentpriceProduct]').val();
    var productSate=$('#productSate option:selected').val();
    var state=$('#state option:selected').val();

    parent.$("input[name='productName1']").val(productName);
    parent.$("input[name='searchKeywords1']").val(searchKeywords);
    parent.$("input[name='currentpriceProduct1']").val(currentpriceProduct);
    parent.$("input[name='productSate1']").val(productSate);
    parent.$("input[name='state1']").val(state);

    parent.sousuo();

    var layer_1=parent.layer_1;
    layer_1.close(layer_1.index);
}

//重置
function chongzhi(){
    $("input").val("");
    $(this).find("option:selected").removeAttr("selected");
}